Optimal. Leaf size=83 \[ \frac {a^2 (a-6 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}+\frac {(3 a-b) b^2 \cosh (c+d x)}{d}+\frac {b^3 \cosh ^3(c+d x)}{3 d}-\frac {a^3 \coth (c+d x) \text {csch}(c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3265, 398, 393,
212} \begin {gather*} -\frac {a^3 \coth (c+d x) \text {csch}(c+d x)}{2 d}+\frac {a^2 (a-6 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}+\frac {b^2 (3 a-b) \cosh (c+d x)}{d}+\frac {b^3 \cosh ^3(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 393
Rule 398
Rule 3265
Rubi steps
\begin {align*} \int \text {csch}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a-b+b x^2\right )^3}{\left (1-x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left ((3 a-b) b^2+b^3 x^2+\frac {a^2 (a-3 b)+3 a^2 b x^2}{\left (1-x^2\right )^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {(3 a-b) b^2 \cosh (c+d x)}{d}+\frac {b^3 \cosh ^3(c+d x)}{3 d}+\frac {\text {Subst}\left (\int \frac {a^2 (a-3 b)+3 a^2 b x^2}{\left (1-x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {(3 a-b) b^2 \cosh (c+d x)}{d}+\frac {b^3 \cosh ^3(c+d x)}{3 d}-\frac {a^3 \coth (c+d x) \text {csch}(c+d x)}{2 d}+\frac {\left (a^2 (a-6 b)\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{2 d}\\ &=\frac {a^2 (a-6 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}+\frac {(3 a-b) b^2 \cosh (c+d x)}{d}+\frac {b^3 \cosh ^3(c+d x)}{3 d}-\frac {a^3 \coth (c+d x) \text {csch}(c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(210\) vs. \(2(83)=166\).
time = 3.04, size = 210, normalized size = 2.53 \begin {gather*} -\frac {\left (-18 (4 a-b) b^2 \cosh (c) \cosh (d x)-2 b^3 \cosh (3 c) \cosh (3 d x)+3 a^3 \text {csch}^2\left (\frac {1}{2} (c+d x)\right )-12 a^3 \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )\right )+72 a^2 b \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )\right )+12 a^3 \log \left (\sinh \left (\frac {1}{2} (c+d x)\right )\right )-72 a^2 b \log \left (\sinh \left (\frac {1}{2} (c+d x)\right )\right )+3 a^3 \text {sech}^2\left (\frac {1}{2} (c+d x)\right )-72 a b^2 \sinh (c) \sinh (d x)+18 b^3 \sinh (c) \sinh (d x)-2 b^3 \sinh (3 c) \sinh (3 d x)\right ) \left (a+b \sinh ^2(c+d x)\right )^3}{3 d (2 a-b+b \cosh (2 (c+d x)))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(207\) vs.
\(2(77)=154\).
time = 1.30, size = 208, normalized size = 2.51
method | result | size |
risch | \(\frac {{\mathrm e}^{3 d x +3 c} b^{3}}{24 d}+\frac {3 \,{\mathrm e}^{d x +c} a \,b^{2}}{2 d}-\frac {3 \,{\mathrm e}^{d x +c} b^{3}}{8 d}+\frac {3 \,{\mathrm e}^{-d x -c} a \,b^{2}}{2 d}-\frac {3 \,{\mathrm e}^{-d x -c} b^{3}}{8 d}+\frac {{\mathrm e}^{-3 d x -3 c} b^{3}}{24 d}-\frac {a^{3} {\mathrm e}^{d x +c} \left (1+{\mathrm e}^{2 d x +2 c}\right )}{d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{2}}-\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 d}+\frac {3 a^{2} \ln \left ({\mathrm e}^{d x +c}-1\right ) b}{d}+\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}+1\right )}{2 d}-\frac {3 a^{2} \ln \left ({\mathrm e}^{d x +c}+1\right ) b}{d}\) | \(208\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 217 vs.
\(2 (77) = 154\).
time = 0.28, size = 217, normalized size = 2.61 \begin {gather*} \frac {1}{24} \, b^{3} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac {3}{2} \, a b^{2} {\left (\frac {e^{\left (d x + c\right )}}{d} + \frac {e^{\left (-d x - c\right )}}{d}\right )} + \frac {1}{2} \, a^{3} {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {2 \, {\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}{d {\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} - e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )}}\right )} - 3 \, a^{2} b {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1814 vs.
\(2 (77) = 154\).
time = 0.46, size = 1814, normalized size = 21.86 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 174 vs.
\(2 (77) = 154\).
time = 0.45, size = 174, normalized size = 2.10 \begin {gather*} \frac {b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} + 36 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - 12 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - \frac {24 \, a^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}}{{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 4} + 6 \, {\left (a^{3} - 6 \, a^{2} b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} + 2\right ) - 6 \, {\left (a^{3} - 6 \, a^{2} b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} - 2\right )}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 229, normalized size = 2.76 \begin {gather*} \frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (a^3\,\sqrt {-d^2}-6\,a^2\,b\,\sqrt {-d^2}\right )}{d\,\sqrt {a^6-12\,a^5\,b+36\,a^4\,b^2}}\right )\,\sqrt {a^6-12\,a^5\,b+36\,a^4\,b^2}}{\sqrt {-d^2}}+\frac {b^3\,{\mathrm {e}}^{-3\,c-3\,d\,x}}{24\,d}+\frac {b^3\,{\mathrm {e}}^{3\,c+3\,d\,x}}{24\,d}+\frac {3\,b^2\,{\mathrm {e}}^{c+d\,x}\,\left (4\,a-b\right )}{8\,d}+\frac {3\,b^2\,{\mathrm {e}}^{-c-d\,x}\,\left (4\,a-b\right )}{8\,d}-\frac {a^3\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-\frac {2\,a^3\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________